package MyFramePro.Domain.Vo;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommentVo {

    private Long id;

    //文章id
    private Long articleId;

    //根评论id
    private Long rootId;

    //评论内容
    private String content;

    //所回复的目标评论的userid
    private Long toCommentUserId;

    @TableField(exist = false)  //表示数据库中该字段不存在
    private String toCommentUserName;

    @TableField(exist = false)
    private String username;    //用户的昵称

    private List<CommentVo> children;   //封装 CommentVo 的集合

    //回复目标评论id
    private Long toCommentId;

    private Long createBy;

    private Date createTime;

}
